package iotwisp.school.device.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@Embeddable
public class EmAirConditionerStatus {

    /**
     * 当前温度
     */
    @Column(name = "temperature", columnDefinition = M.DOUBLE_COLUMN)
    private Double temperature;

    /**
     * 当前功能档：制冷、制热、除温...
     */
    @Column(name = "func", length = 32)
    private String func;
}
